package org.jeecg.modules.demo.com.kunpeng.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.com.kunpeng.entity.PurchaseContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.demo.com.kunpeng.vo.PurchaseContractVO;
import org.springframework.stereotype.Repository;

/**
 * @Description: 采购合同表
 * @Author: jeecg-boot
 * @Date:   2022-12-23
 * @Version: V1.0
 */
@Repository
public interface PurchaseContractMapper extends BaseMapper<PurchaseContract> {

    /**
     * 根据合同属性或者合同状态或者关键字查询采购合同数据
     * @param contractProperties
     * @param status
     * @param keyWords
     * @return
     */
    List<PurchaseContractVO> listByKeyWords(Page<PurchaseContractVO> page, @Param("contractProperties") String contractProperties,
                                            @Param("status") String status, @Param("keyWords") String keyWords);


    /**
     * 根据id修改状态
     * @param id
     * @param status
     */
    void updateStateById(String id,String status);
}
